import req from '@/api/http.js'

/** 保存地面战数据 */
export const SaveGroundBattleData = data =>
  req('post', '/ybgl/xdzy-dmz/save', data)
/** 获取列表 */
export const GetGroundBattleDataList = params =>
  req('get', '/ybgl/xdzy-dmz/page', params)
/** 删除地面战数据 */
export const DeleteGroundBattleData = data =>
  req('post', '/ybgl/xdzy-dmz/remove', data)
/** 获取列表详情 */
export const GetGroundBattleDataDetail = id =>
  req('get', `/ybgl/xdzy-dmz/detail?id=${id}`, id)
/** 修改地面战数据 */
export const UpdateGroundBattleData = data =>
  req('post', '/ybgl/xdzy-dmz/update', data)
/** 地面战文件导入 */
export const UploadGroundBattleData = data =>
  req('post', '/ybgl/xdzy-dmz/import', data)
